﻿using System;
using System.ComponentModel.DataAnnotations;
using XStudio.XCRF.Data.Business.Archieve;

namespace XStudio.XCRF.Data.Entities.CureInfo
{
    /// <summary>
    /// 治疗信息 手术信息
    /// </summary>
    public partial class CureOperation : Operation<CureOperation>, IArchieve
    {
        #region 属性
        /// <summary>
        /// 治疗信息ID
        /// </summary>
        [ForeignKey("CureInfo")]
        public Guid? CureInfoID { get; set; }
        /// <summary>
        /// 治疗信息
        /// </summary>
        public virtual CureInfo CureInfo { get; set; }
        #endregion 属性

        public CureOperation Clone()
        {
            CureOperation co = new CureOperation();
            co.Creater = this.Creater;
            co.CreaterID = this.CreaterID;
            co.CreateTime = this.CreateTime;
            co.CureInfo = this.CureInfo;
            co.CureInfoID = this.CureInfoID;
            co.IsDeleted = this.IsDeleted;
            co.LastModifier = this.LastModifier;
            co.LastModifierID = this.LastModifierID;
            co.LastModifyTime = this.LastModifyTime;
            co.Master = this.Master;
            co.MasterID = this.MasterID;
            co.Name = this.Name;
            co.Remark = this.Remark;
            co.Time = this.Time;
            return co;
        }
    }
}